<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Promise封装 | 17 - class版本封装</title>
	<script src="./promise.js"></script>
</head>
<body>
	<script>
		//let p1 = new Promise((resolve,reject)=>{
		//	//resolve('ok')
		//	//reject('err')
		//	setTimeout(()=>{
		//		//resolve('ok')
		//		reject('err')
		//	},1000)
		//})
		//p1.then((value)=>{
		//	console.log(value);
		//},reason =>{
		//	console.warn(reason);
		//})
		
		console.log(Promise.resolve('ok'));
		
	</script>
</body>
</html>